package com.nitobi.util
{
	
	import com.nitobi.util.Encryption;
	
	public class SettingsUtil
	{

		public static function isMissingSettings():Boolean
		{
			var missingSetting:Boolean = false;

			if (Encryption.readEncryptedStringSetting("harvestUser") == "")
				missingSetting = true;
			
			if (Encryption.readEncryptedStringSetting("harvestPass") == "")
				missingSetting = true;
				
			if (Encryption.readEncryptedStringSetting("companyName") == "")
				missingSetting = true;
				
			if (Encryption.readEncryptedStringSetting("coopUser") == "")
				missingSetting = true;
				
			if (Encryption.readEncryptedStringSetting("coopPass") == "")
				missingSetting = true;																
					
			return missingSetting;
		}
		
	}
}